package fanshi;

public class fanxing2 {
    public class Foo<T1,T2>{
        T1 a;
        T2 b;

        public T1 getA() {
            return a;
        }

        public void setA(T1 a) {
            this.a = a;
        }

        public T2 getB() {
            return b;
        }

        public void setB(T2 b) {
            this.b = b;
        }
    }

    public fanxing2() {
        Foo<Integer,Float> f1=new Foo<>();
        f1.setA(30);
        f1.setB(3.5F);
        int a=f1.getA();
        float b=f1.getB();
        System.out.println(a+" "+b);
    }

    public static void main(String[] agrs){
        new fanxing2();

    }
}
